of

open fun of(derEncoded: Array<Byte>): SslPrivateKey

Creates an SslPrivateKey instance for the given bytes.

Parameters

derEncoded

the DER-encoded representation of the SSL private key. It can be EC or RSA private keys. Cannot be empty

Throws

when the given derEncoded bytes are empty